<template>
	<view class="fwcontainer">
		<view class="status_bar">
		  <!-- 这里是状态栏 -->
	    </view>
		<view class="welcome">汽车管理系统</view>
	</view>
</template>

<script>
	const APP = getApp();
	
	export default {
	    components: {},
		data() {
			return {
				//设置数据
			}
		},
		computed:{
			
		},
		methods:{
			
		},
		onLoad(options) {
			
		},
		onShow() {
			let _this = this;
			setTimeout(function(){
				let loginStatus = APP.appauth.checkAuth();
				if (loginStatus) {
					uni.switchTab({
						url:'/pages/home/home'
					});
				}else{
					uni.reLaunch({
						url:'/pages/basic/login/index'
					});
				}
			},2000);			
		}
	}	
</script>

<style>
	.status_bar{
		height: var(--status-bar-height);
		width: 100%;
	}
	.welcome{
		display: flex;
		flex: 1;
		justify-content: center;
		align-items: center;
		font-size: 50rpx;
		font-weight: bolder;
		text-align: center;			
	}
</style>
